// initial state
const state = () => ({
  asyncRoutes: []
})

// getters
const getters = {}

// actions
const actions = {
  setAsyncRoutes({ commit }, data) {
    commit('SET_ASYNC_ROUTES', data)
  }
}

// mutations
const mutations = {
  SET_ASYNC_ROUTES(state, data) {
    state.asyncRoutes = data
  }
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}
